from sqlalchemy.dialects.mysql import INTEGER, VARCHAR,JSON
from sqlalchemy import Column
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class DownmineData(Base):
    __tablename__ = 'downmine_data'

    id = Column(INTEGER, primary_key=True)
    line = Column(VARCHAR(256), default='', nullable=False)
    data = Column(JSON, default=None, nullable=False)
    create_time = Column(INTEGER, default=0)